﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BallWar
{
    public abstract class Base
    {
        public Graphics _g { get; set; }
        public Size _size { get; set; }
        public Color _color { get; set; }
        public Point _station { get; set; }
        public void Display()
        {
            Rectangle _rect = new Rectangle(_station, _size);
            _g.FillEllipse(new SolidBrush(_color), _rect);
        }
        public void UnDisplay()
        {
            Rectangle _rect = new Rectangle(new Point(_station.X-1,_station.Y-1), new Size(_size.Width+2,_size.Height+2));
            _g.FillEllipse(Brushes.Gray, _rect);
        }
    }
}
